<!DOCTYPE html>
<html>

<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../bootstrap-5.1.3-dist/css/bootstrap.css" rel="stylesheet">
    <script src="../bootstrap-5.1.3-dist/js/bootstrap.bundle.min.js"></script>
</head>

<body class="container">
    <h3 align="center">卡片的背景颜色</h3>
    <div class="card text-white bg-primary mb-3">
        <div class="card-header">这里是bg-primary</div>
    </div>
    <div class="card text-white bg-secondary mb-3">
        <div class="card-header">这里是 bg-secondary</div>
    </div>
    <div class="card text-white bg-success mb-3">
        <div class="card-header">这里是bg-success</div>
    </div>
    <div class="card text-white bg-danger mb-3">
        <div class="card-header">这里是bg-danger</div>
    </div>
    <div class="card text-white bg-warning mb-3">
        <div class="card-header">这里是bg-warning</div>
    </div>
    <div class="card text-white bg-info mb-3">
        <div class="card-header">这里是bg-info</div>
    </div>
    <div class="card text-dark bg-light mb-3">
        <div class="card-header">这里是bg-light</div>
    </div>
    <div class="card text-white bg-dark mb-3">
        <div class="card-header">这里是bg-dark</div>
    </div>
</body>

</html>